﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Wms.Manager.Common.Dtos
{
    public class ImportResult<T>
    {
        public List<T> SuccessData { get; set; } = new List<T>();
        public List<ImportError> Errors { get; set; } = new List<ImportError>();
        public int TotalRows { get; set; }
        public int SuccessCount => SuccessData.Count;
        public int ErrorCount => Errors.Count;
        public bool HasErrors => Errors.Count > 0;
    }
    
}
